package com.sheep.classroompie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;


public class Comment {
  @TableId(type = IdType.AUTO)
  private int homeworkId;  //作业id
  private String role;
  private String userId;
  private String evaluation; //评论
  private String commentTime; //评论时间
  private String name;
  private String avatar;

  public Comment(int homeworkId, String role, String userId, String evaluation, String commentTime, String name, String avatar) {
    this.homeworkId = homeworkId;
    this.role = role;
    this.userId = userId;
    this.evaluation = evaluation;
    this.commentTime = commentTime;
    this.name = name;
    this.avatar = avatar;
  }
  public String getCommentTime() {
    return commentTime;
  }

  public void setCommentTime(String commentTime) {
    this.commentTime = commentTime;
  }
  public int getHomeworkId() {
    return homeworkId;
  }

  public void setHomeworkId(int homeworkId) {
    this.homeworkId = homeworkId;
  }

  public String getRole() {
    return role;
  }

  public void setRole(String role) {
    this.role = role;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getEvaluation() {
    return evaluation;
  }

  public void setEvaluation(String evaluation) {
    this.evaluation = evaluation;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getAvatar() {
    return avatar;
  }

  public void setAvatar(String avatar) {
    this.avatar = avatar;
  }
}
